package com.huarui.employee.dao.impl;

import java.util.Map;

import org.ewaf.framework.dao.impl.BaseDaoImpl;

import com.huarui.employee.dao.IAddingEmployeeDao;
import com.huarui.employee.model.AddingEmployee;

public class AddingEmployeeDaoImpl extends BaseDaoImpl implements IAddingEmployeeDao  {

	@SuppressWarnings("unchecked")
	@Override
	public AddingEmployee getByEmailAndCompanyId(Map map){
	
		return (AddingEmployee)this.getSqlMapClientTemplate().queryForObject(namespace+".getByEmailAndCompanyId",map);
	}

	@Override
	public AddingEmployee getByActivateCode(String activateCode){
		
		return (AddingEmployee)this.getSqlMapClientTemplate().queryForObject(namespace+".getByActivateCode",activateCode);
	}

}
